#include <iostream>
#include <algorithm>

using namespace std;

int a,b;
int tmp;

int main()
{
	cin >> a >> b;
	
	//swap(a,b);
	tmp = a; a = b; b = tmp;
	cout << a <<" " << b;
	
	return 0;
}
